import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 *
 * @author Bora SAYINER
 * @since Dec 28, 2014 1:20:22 PM
 * @version 1.0
 */
public class ExecuterSample {

	public static void main(String[] args) {
		ExecutorService executorService = Executors.newFixedThreadPool(10);
		for (int i = 0; i < 50; i++) {
			executorService.submit(new Runnable() {
				@Override
				public void run() {
					System.out.println(Thread.currentThread());
				}
			});
		}
	}
}
